projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b5b0344
)
at91rm9200: fix errors with CONFIG_CMD_I2C_TREE
author
Jens Scharsig
<
[email protected]
>
Fri, 12 Sep 2008 00:20:47 +0000
(
02:20
+0200)
committer
Jean-Christophe PLAGNIOL-VILLARD
<
[email protected]
>
Fri, 12 Sep 2008 00:20:47 +0000
(
02:20
+0200)
This patch prevents linker error on AT91RM9200 boards, if
CONFIG_CMD_I2_TREE is set.
It implements i2c_set_bus_speed and i2c_get_bus_speed as a dummy function.
Signed-off-by: Jens Scharsig <
[email protected]
>
cpu/arm920t/at91rm9200/i2c.c
patch
|
blob
|
history
diff --git
a/cpu/arm920t/at91rm9200/i2c.c
b/cpu/arm920t/at91rm9200/i2c.c
index 826cea8e2641a7a6dc832bc955943cc403b3558f..90f95df18a07feb75dc054e63efce80c7945ba80 100644
(file)
--- a/
cpu/arm920t/at91rm9200/i2c.c
+++ b/
cpu/arm920t/at91rm9200/i2c.c
@@
-203,4
+203,14
@@
void i2c_reg_write(uchar i2c_addr, uchar reg, uchar val)
i2c_write(i2c_addr, reg, 1, &val, 1);
}
+int i2c_set_bus_speed(unsigned int speed)
+{
+ return -1;
+}
+
+unsigned int i2c_get_bus_speed(void)
+{
+ return CFG_I2C_SPEED;
+}
+
#endif /* CONFIG_HARD_I2C */